home *** CD-ROM | disk | FTP | other *** search
- #include "stdafx.h"
-
- cHurting::cHurting(int _x, int _y, cProperties *orig)
- : cWeapon(_x, _y, orig, "MOVING")
- {
- // Set other
-
- active_wait = 0;
-
- circle_bounds = 0;
-
- push_moving_direction = FALSE;
-
- move_object_after_hit = FALSE;
- }
-
- cHurting::~cHurting()
- {
- }
-
- int cHurting::control()
- {
- cWeapon::control();
-
- // Hit stuff
-
- if (!active_wait)
- {
- check_radial_hit_more(orig->circle);
-
- active_wait = sec / 5;
- }
-
- // Delete when off screen
-
- return !in_water();
- }
-